// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SA1120CommentsMustContainTextBulbItem.cs" company="StyleCop for ReSharper Development Team">
//   Copyright (c) StyleCop for ReSharper Development Team. All rights reserved.
// </copyright>
// <summary>
//   Defines the SA1120CommentsMustContainTextBulbItem type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace StyleCop.For.ReSharper.BulbItems.Readability
{
    #region Using Directives

    using JetBrains.ProjectModel;
    using JetBrains.TextControl;

    using StyleCop.For.ReSharper.BulbItems.Framework;

    #endregion

    /// <summary>
    /// QuickFix action.
    /// </summary>
    public class SA1120CommentsMustContainTextBulbItem : QuickFixBulbItem
    {
        #region Public Methods

        /// <summary>
        /// Performs the QuickFix.
        /// </summary>
        /// <param name="solution">
        /// Current Solution.
        /// </param>
        /// <param name="textControl">
        /// Current Text Control to modify.
        /// </param>
        public override void ExecuteInner(ISolution solution, ITextControl textControl)
        {
            textControl.Document.DeleteText(this.DocumentRange.TextRange);
        }

        #endregion
    }
}